import ReactDOM from 'react-dom';
import React, { useState } from 'react';
import './global.scss';

const PageHome = () => {

  return (
    <div className="page-home">
      <h1>项目首页</h1>
      <h2>组建列表：(数据接口返回的)</h2>
      {[10086, 10010, 100000].map((id, index) => (<div key={index}>组建ID：{id}<a href={`/?cid=${id}`} target="_blank">去搭建</a></div>))}
    </div>
  );
};

ReactDOM.render(<PageHome />, document.getElementById('lowcode-home-container'));
